<div class="top shadow">
</div>

<div class="content">
<?=$user_menu?>
<?php 
	if($galleries->count() == 0)
	{
		echo "You have still no galleries... so you can start by ";
		echo anchor("/user/galleries/create", "creating one now!");
	}
	else
	{
		echo anchor("/user/galleries/create", "Create a new gallery")
	
?>
	<ul>
<?php
	foreach($galleries as $g)
	{
		echo "<li>";
		echo anchor("/user/galleries/show/{$g->id}", $g->name) . "&nbsp;";
		echo "[". (($g->published)?"Published":"Not published") ."]&nbsp;";
		echo "[". anchor("/user/galleries/edit/{$g->id}", "edit") ."]&nbsp;";
		echo "[". anchor("/user/galleries/delete/{$g->id}", "delete") ."]";
		echo "</li>";
	}
?>
	</ul>

<?php } ?>
</div>